package com.team7.order.service;


import com.team7.order.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.team7.order.utils.CommonResult;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author 张煜杰
 * @since 2021-10-20
 */
public interface OrderService extends IService<Order> {
    //    查询所有
    CommonResult getAllOrder(Integer page, Integer limit, Order order);
    //    根据id进行两表联查
    CommonResult queryOrderAndPayLog(String id);
    //    查询所有的订单信息(支付类型)
    CommonResult queryOrderByPay();

    CommonResult deleteOrder(String id);
    //    根据课程id和会员di查询支付状态
    CommonResult getOrderStatusByCourseIdAndHuiYuanId(String id,String HuiYuanId);
    //    更改支付状态
    CommonResult updateZhiFuStatus(String id,String HuiYuanId);
    //    更改支付状态
    CommonResult updateStatus(String order_no);
    //    根据课程id和会员id查询当前订单信息
    CommonResult queryCurrentOrderXinXi(String id,String HuiYuanId);

}
